<style type="text/css">
.systeminfo{
	margin:20px;
}
.systeminfo h2{
	text-align:center;
}
.systeminfo table{
	margin-top:10px;
}
.restartserver{
	display:inline-block;
	width:60px;
	text-align:center;
	color:#f00;
	cursor:pointer;
}
</style>
<script type="text/javascript">

function restartserver(){
	if(!confirm('确定要重启服务吗？')){
		return;
	}
	$.ajax({
		url:'system/systeminfo!RestartTomcat.action',
		dataType:"JSON",
		success: function(rs){
			alert(rs.msg);
		},
		statusCode:{
			0:function(){}
		},
		complete:function(x, t){
			if(x.status=='0')
				goPage('system/systeminfo.action','#main');
			else
				$( ".loading" ).dialog('close');
		}
	});
}
</script>
<div class="systeminfo">
  <h2>系统信息</h2>
  <table class='tablestyle1'>
    <caption>
    系统信息
    </caption>
    <tr>
      <td>操作系统</td>
      <td>${os.name}</td>
    </tr>
    <tr>
      <td>arch</td>
      <td>${os.arch}</td>
    </tr>
    <tr>
      <td>操作系统版本</td>
      <td>${os.version}</td>
    </tr>
  </table>
  <table class='tablestyle1'>
    <caption>
    JDK信息
    </caption>
    <tr>
      <td>java.version</td>
      <td>${java.javaversion}</td>
    </tr>
    <tr>
      <td>java.vendor</td>
      <td>${java.javavendor}</td>
    </tr>
    <tr>
      <td>vm.specification.version</td>
      <td>${java.vmspecificationversion}</td>
    </tr>
    <tr>
      <td>vm.specification.vendor</td>
      <td>${java.vmspecificationvendor}</td>
    </tr>
    <tr>
      <td>vm.specification.name</td>
      <td>${java.vmspecificationname}</td>
    </tr>
    <tr>
      <td>specification.version</td>
      <td>${java.specificationversion}</td>
    </tr>
    <tr>
      <td>specification.vendor</td>
      <td>${java.specificationvendor}</td>
    </tr>
    <tr>
      <td>specification.name</td>
      <td>${java.specificationname}</td>
    </tr>
    <tr>
      <td>class.version</td>
      <td>${java.classversion}</td>
    </tr>
  </table>
  <table class='tablestyle1'>
    <caption>
    服务器信息<span onClick="restartserver()" class="restartserver">重启</span>
    </caption>
    <tr>
      <td>freeMemory</td>
      <td>${tomcat.freeMemory}</td>
    </tr>
    <tr>
      <td>totalMemory</td>
      <td>${tomcat.totalMemory}</td>
    </tr>
    <tr>
      <td>maxMemory</td>
      <td>${tomcat.maxMemory}</td>
    </tr>
    <tr>
      <td>usedMemory</td>
      <td>${tomcat.totalMemory - tomcat.freeMemory}</td>
    </tr>
    <tr>
      <td>useableMemory </td>
      <td>${tomcat.maxMemory - tomcat.totalMemory + tomcat.freeMemory}</td>
    </tr>
  </table>
</div>
